import { get, post } from '../utils/request'
// export const sendUnBindSms = (equipId) =>
//   get('/cloud-equip/binding/sendUnBindSms', {
//     equipId,
//   })
// + row mobile=
export const sendVerificationCode = (row, tenantId) =>
  post('/cloud-merchant/mrc/h5/sendVerificationCode', {
    mobile: row,
    tenantId: tenantId,
  })
export const touristAdd = (row) =>
  post('/cloud-merchant/mrc/h5/touristAdd', row)
export const token = (row) =>
  post(
    `/cloud-auth/oauth/token?tenantId=${row.tenantId}&username=${row.username}&password=${row.password}&grant_type=${row.grant_type}&scope=${row.scope}&type=${row.type}`,
    {},
    {
      'User-Type': 'merchApp',
      'Tenant-Id': row.tenantId,
      Authorization: 'Basic bWVyY2hhbnQtYXBwOkxBRWllWGtITndjVmp1cG4=',
      'Accept-Language': 'zh-CN',
    }
  )

  export const getAgentNameByInviteCode = (inviteCode, tenantId) =>
  get(`/cloud-merchant/mrc/h5/getAgentNameByInviteCode?inviteCode=${inviteCode}&tenantId=${tenantId}`)

// tenantId=000000&username=admin&password=fuhuiba&grant_type=password&scope=all&type=account

// /cloud-system/region/getRegionString?provinceCode=${data.provinceCode}&cityCode=${data.cityCode}&districtCode=${data.districtCode}`
